package com.yonyou.pmclouds.personnel.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author chulf
 * @Date 2020/4/13
 * @Description
 **/
@Data
@Table(name = "pm_personnel")
public class PersonnelVO extends SuperVO {

    public static final String PK_ENTERPRISE = "pk_enterprise";
    public static final String USER_NAME = "userName";
    public static final String PHONE = "phone";
    public static final String EMAIL = "email";
    public static final String IS_CONTACTS = "isContacts";
    public static final String IS_SPECIAL_WORK = "isSpecialWork";
    public static final String IS_YGC_AUTHORIZER = "isYgcAuthorizer";
    public static final String USER_ID = "userId";
    public static final String MEMO = "memo";
    public static final String SNAME = "sname";

    @Id
    private String pkPersonnel;
    private String userName;

    @Excel(name = "人员名称（必填）")
    private String sname;
    @Excel(name = "手机号（手机号、邮箱至少有一项）")
    private String phone;
    @Excel(name = "邮箱（手机号、邮箱至少有一项）")
    private String email;
    private byte isContacts; //是否企业联系人    1,是/0，否
    private byte isSpecialWork; //是否特殊工种  1,是/0，否
    private byte isYgcAuthorizer; //是否友工程授权 1,是/0，否
    private String memo;
    private String userId;
    private String creator;
    private Date creationtime;
    private String modifier;
    private Date modifytime;
    private String pkTenant;
    private String pkEnterprise;
    private String originalPhone; //原始手机号
    private String originalEmail; //原始邮箱

}
